import axios from '@/api/fetch';
import SERVER from '@/api/server';

export const getListByPage = params => axios.post(`${SERVER.CLAIMFAC}/serviceass/rpBatteryWarningInfo/getListByPage`,  params );

export const getListForExport = params => {
    return axios({
      url:`${SERVER.CLAIMFAC}/serviceass/rpBatteryWarningInfo/getListForExport`,
      method: 'post',
      params: params,
      responseType: 'blob'
    });
  };

export const updateState = params => axios.post(`${SERVER.CLAIMFAC}/serviceass/rpBatteryWarningInfo/updateState`,  params );

export const selectDetail = params => axios.post(`${SERVER.CLAIMFAC}/serviceass/rpBatteryWarningInfo/selectDetail`,  params );

export const getHistory = params => axios.post(`${SERVER.CLAIMFAC}/serviceass/rpBatteryWarningInfo/getHistory`,  params );
